import random
rate = {'R': 78.75, 'SR': 20, 'SSR': 1, 'SP': 0.25}
time = input('请输入抽卡次数')
for t in range(0, int(time)):
    ran = random.randint(0, 400)
    if ran < 315:
        print('R')
    elif ran < 395:
        print('SR')
    elif ran < 399:
        print('SSR')
    elif ran < 400:
        print('SP')
